package com.caiyouxi.pay.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.pay.model.PaymentConfig;
import com.caiyouxi.pay.service.PaymentConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("payment_config")
public class PaymentConfigController {
    @Autowired
    private PaymentConfigService service;
    @RequestMapping("deleteByPrimaryKey")
    public ResData deleteByPrimaryKey(@RequestBody PaymentConfig bean){
        return service.deleteByPrimaryKey(bean);
    }

    @RequestMapping("insert_pay")
    public ResData insert_pay(@RequestBody PaymentConfig bean){
        return service.insert_pay(bean);
    }
    @RequestMapping("select_pay")
    public ResData select_pay(@RequestBody PaymentConfig bean){
        return service.select_pay(bean);
    }

    @RequestMapping("update_pay")
    public ResData update_pay(@RequestBody PaymentConfig bean){
        return service.update_pay(bean);
    }

    @RequestMapping("select_pay_list")
    public ResData select_pay_list(@RequestBody PaymentConfig bean){
        return service.select_pay_list(bean);
    }
}
